import request from '@/utils/request'
import method from '@/utils/config'

const urlPrefix = 'crm/'

// 请求路径
const actionRecordApi = {
  // 查询对象的操作记录
  listActionRecord: urlPrefix + 'actionRecord/listActionRecord'
}

/**
 * 查询对象的操作记录
 * @param queryParams 查询参数
 * @returns {*}
 */
export function listActionRecord(model, objectId) {
  return request({
    url: actionRecordApi.listActionRecord,
    method: method.POST,
    params: {
      model,
      objectId
    }
  })
}
